package net.system.sys.action;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

import org.apache.struts2.StrutsSpringTestCase;
import org.apache.struts2.dispatcher.mapper.ActionMapping;
import org.junit.Test;
import org.springframework.test.context.ContextConfiguration;

@ContextConfiguration(locations = "classpath:resources/applicationContext*.xml")
public class TestActionTest extends StrutsSpringTestCase{

	/*
	 * @Before public void setUp() throws Exception { }
	 */

	// @Test
	// public void test() {
	// fail("Not yet implemented");
	// }
	@Test
	public void testGetActionMapping() {
		ActionMapping mapping = getActionMapping("/test/test.shtml");
		assertNotNull(mapping);
		assertEquals("/test", mapping.getNamespace());
		assertEquals("test", mapping.getName());
	}
}
